package cn.tedu.management.portal.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 
 * </p>
 *
 * @author tedu.cn
 * @since 2020-12-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("salary")
public class Salary implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 职员id
     */
    @TableField("staff_id")
    @NotNull(message = "员工ID不能为空")
    private Integer staffId;

    /**
     * 底薪
     */
    @TableField("salary")
    @NotNull(message = "工资不能为空")
    private Double salary;

    /**
     * 银行卡号
     */
    @TableField("card_no")
    @NotNull(message = "银行卡号不能为空")
    private String cardNo;

    /**
     * 社保等级
     */
    @TableField("level")
    @NotNull(message = "社保等级不能为空")
    private Double level;

    /**
     * 社保状态
     */
    @TableField("state")
    @NotNull(message = "在职状态不能为空")
    private String state;

    /**
     * 创建时间
     */
    @TableField("gmt_create")
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    @TableField("gmt_modified")
    private LocalDateTime gmtModified;


}
